package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 李浩然
 * @Date: 2021/4/20 11:18 上午
 */
@RestController
public class MiyaController {
    @Value("${my.name}")
    private String name;

    @Value("${my.age}")
    private String age;

    @RequestMapping("/miya")
    public String miya() {
        return name + " : " + age;
    }
}
